/*
actor_cutscene_control();
*/
if (cutscene_xpos_target != 0){
cutscene_xpos = cutscene_xpos_last + cutscene_xpos_target;
if (cutscene_xpos_last<cutscene_xpos){
dir = 1;
}
else{
dir = -1;
}
walking = ((cutscene_xpos-x)>(sp*dir));
if (walking == false){
cutscene_xpos_last = x;
cutscene_xpos_target = 0;
cutscene_xpos = 0;
}
}
if (cutscene_timer_value > 0){
if (cutscene_timer < cutscene_timer_value){
cutscene_timer += 1;
}
else{
cutscene_timer = 0;
cutscene_timer_value = 0;
crouching = false;
}
}
if (global.cutscene == true){
if (gravity != 0 && jumping == true){
jumping = false;
}
if (instance_place(x+(dir*wsp),y,obj_solid) && walking == true){
walking = false;
}
if (actor_floorbelow(1) && can_jump == false){
can_jump = true;
}
}
